<?php
    include 'database.php';
    
    var_dump($_GET);

    $id = $_GET['id'];
    $name = utf8_decode(mysql_real_escape_string($_GET['name']));
    
    $sql="UPDATE QuizCategories SET name='$name' WHERE id='$id'";
    
    if (!mysql_query($sql)) {
        die('Error: ' . mysql_error($dbhandle));
    }
    
    mysql_close($dbhandle);
?>